package com.raycloud.java.dada.service.inter;

import com.raycloud.java.dada.model.OrderCancelTest;
import com.raycloud.java.dada.model.OrderStatus;
import com.raycloud.java.dada.result.ResultModel;

/**
 * Created by hechuan on 2017/6/25.
 * <p>
 * 回调测试接口
 */
public interface CallbackService {

    /**
     * 接受订单(仅在测试环境供调试使用)
     *
     * @param orderStatus
     * @return
     */
    public ResultModel acceptOrder(OrderStatus orderStatus)throws Exception;

    /**
     * 完成取货(仅在测试环境供调试使用)
     *
     * @param orderStatus
     * @return
     */
    public ResultModel fetchOrder(OrderStatus orderStatus)throws Exception;

    /**
     * 完成订单(仅在测试环境供调试使用)
     *
     * @param orderStatus
     * @return
     */
    public ResultModel finishOrder(OrderStatus orderStatus)throws Exception;

    /**
     * 取消订单(仅在测试环境供调试使用)
     *
     * @param orderCancelTest
     * @return
     */
    public ResultModel cancelOrder(OrderCancelTest orderCancelTest)throws Exception;



    /**
     *  订单过期(仅在测试环境供调试使用)
     *
     * @param orderStatus
     * @return
     */
    public ResultModel expireOrder(OrderStatus orderStatus)throws Exception;


}
